using System;
using System.Collections.Generic;
using System.Text;
using System.Management.Automation;             //Windows PowerShell namespace.
using System.ComponentModel;                    //For registering with RunInstaller
using System.IO;

namespace VmWareVix.Commands
{

  /// <summary>
  /// Create the PowerShell snap-in used to register the 
  /// Get-Proc cmdlet. Declaring the PSSnapIn class identifies
  /// this .cs file as a PowerShell snap-in.
  /// </summary>
  [RunInstaller(true)]
  public class VmWareVixSnapIn : PSSnapIn
  {
    /// <summary>
    /// Create an instance of the GetProcPSSnapIn01 class.
    /// </summary>
    public VmWareVixSnapIn()
      : base()
    {
    }

    /// <summary>
    /// Specify the name of the PowerShell snap-in.
    /// </summary>
    public override string Name
    {
      get
      {
        return "VMWareVixSnapIn";
      }
    }

    /// <summary>
    /// Specify the vendor for the PowerShell snap-in.
    /// </summary>
    public override string Vendor
    {
      get
      {
        return "Software Frontier";
      }
    }

    /// <summary>
    /// Specify the localization resource information for the vendor. 
    /// Use the format: resourceBaseName,VendorName. 
    /// </summary>
    public override string VendorResource
    {
      get
      {
        return "VMWareVixSnapIn,Software Frontier";
      }
    }

    /// <summary>
    /// Specify a description of the PowerShell snap-in.
    /// </summary>
    public override string Description
    {
      get
      {
        return "This is a PowerShell snap-in that includes the get-VM cmdlet.";
      }
    }

    /// <summary>
    /// Specify the localization resource information for the description. 
    /// Use the format: resourceBaseName,Description. 
    /// DZ: I don't know why I need it for now...
    /// </summary>
    //public override string DescriptionResource
    //{
    //  get
    //  {
    //    return "GetProcPSSnapIn01,This is a PowerShell snap-in that includes the get-proc cmdlet.";
    //  }
    //}
  }
}
